-- GENERATED SPELL FOR [Hardened Steel Skycaller] --


function spell0_28580(pUnit, Event) --@Disengage,n/a--
pUnit:FullCastSpellOnTarget(61507,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28580', 588, 1)
end

function spell1_28580(pUnit, Event) --@Impact Multi-Shot,n/a--
pUnit:FullCastSpellOnTarget(52755,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28580', 631, 1)
end

function spell2_28580(pUnit, Event) --@Impact Multi-Shot,n/a--
pUnit:FullCastSpellOnTarget(59147,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28580', 551, 1)
end

function spell3_28580(pUnit, Event) --@Impact Shot,n/a--
pUnit:FullCastSpellOnTarget(52754,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28580', 666, 1)
end

function spell4_28580(pUnit, Event) --@Impact Shot,n/a--
pUnit:FullCastSpellOnTarget(59148,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28580', 578, 1)
end

function spell5_28580(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(16100,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28580', 593, 1)
end

function spell6_28580(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(61515,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28580', 606, 1)
end

function Sorts_28580(pUnit, Event)
local choix_sorts_28580 = math.random(0, 6)
if choix_sorts_28580 == 0 then
pUnit:RegisterEvent('spell0_28580', 1, 1)
end
if choix_sorts_28580 == 1 then
pUnit:RegisterEvent('spell1_28580', 1, 1)
end
if choix_sorts_28580 == 2 then
pUnit:RegisterEvent('spell2_28580', 1, 1)
end
if choix_sorts_28580 == 3 then
pUnit:RegisterEvent('spell3_28580', 1, 1)
end
if choix_sorts_28580 == 4 then
pUnit:RegisterEvent('spell4_28580', 1, 1)
end
if choix_sorts_28580 == 5 then
pUnit:RegisterEvent('spell5_28580', 1, 1)
end
if choix_sorts_28580 == 6 then
pUnit:RegisterEvent('spell6_28580', 1, 1)
end
end

function mob28580_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28580', math.random(1500, 3000), 1)
end

function mob28580_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28580_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28580_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28580, 1, 'mob28580_Action')
RegisterUnitEvent(28580, 2, 'mob28580_Leave')
RegisterUnitEvent(28580, 3, 'mob28580_Kill')
RegisterUnitEvent(28580, 4, 'mob28580_Die')
